#include <stdio.h>
#include <math.h>

int main(void)
{
	int a, b, c;
	int x1 = 0, x2 = 0;
	
	scanf_s("%d%d%d", &a, &b, &c);
	//ax方 + bx + c = 0

	//两个解
	if ((b * b - 4 * a * c) > 0) {
		x1 = (-b + sqrt(b * 1.0 * b - 4.0 * a * c)) / 2 * a;
		x2 = (-b - sqrt(b * 1.0 * b - 4.0 * a * c)) / 2 * a;
		printf("该方程有两个解为x1 = %d,x2 = %d", x1, x2);
	}
	//两解相同
	else if ((b * b - 4 * a * c) == 0) {
		x1 = (-b + sqrt(b * 1.0 * b - 4.0 * a * c)) / 2 * a;
		printf("该方程仅有一个解为x = %d", x1);
	}
	//无解
	else if ((b * b - 4 * a * c) < 0) {
		printf("该方程无解");
	}
	else {
		printf("未知错误");
	}

	return 0;
}